<?php
namespace app\api\controller;

use app\api\model\Banner as BannerModel;
use app\lib\exception\DataMissException;


/**
 * 菜品
 */
class Banner
{
	
	/**
	 * 获取轮播图
	 */
	public function getBanner()
	{
		$banner = BannerModel::getAllBanner();

//		if(!$food) {
//		    throw new DataMissException([
//		    	'msg' => '请求的菜品数据不存在'
//		    ]);
//        }

		return $banner;
	}
}
